import React, { useState, useEffect } from 'react';
import { Image } from 'react-native';
import { pTx } from "../utils/dimensions"
import httpApi from "../api"

export default ({ source = {}, style = {}, width = 0 }) => {
    return <Image  {...style} style={[{ width: pTx(70), height: pTx(70) }, style]} source={{ uri: httpApi.inline + (source.uri || httpApi.defaultAvatar) }}></Image>
};

